home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_11_08
/
1108120b
< prev
next >
Wrap
Text File
|
1993-05-21
|
350b
|
26 lines
1: int i; // 3
2:
3: struct A1
4: {
5: static int i; // never
6: struct B1
7: {
8: int i; // 1
9: };
10: };
11:
12: struct A2
13: {
14: static int i; // 2
15: struct B2 : public A1::B1
16: {
17: void f();
18: };
19: };
20:
21: void A2::B2::f()
22: {
23: i = 3;
24: }